<%-- 
    Document   : createFactory
    Created on : mar 6, 2015, 2:13:50 PM
    Author     : Ravi
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>Shop APP|Factory_Purchase</title>
        <link type="text/css" rel="stylesheet" href="css/semantic.min.css">
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/semantic.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui.min.js"></script>
        <script type="text/javascript">

            $(document).ready(function() {

                $('.ui.form').form({
                    factoryName: {
                        identifier: 'factoryName',
                        rules: [
                            {
                                type: 'empty',
                                prompt: 'please enter factoryName'
                            }
                        ]
                    },
                    factoryID: {
                        identifier: 'factoryID',
                        rules: [
                            {
                                type: 'empty',
                                prompt: 'please enter Factory Id'
                            }]
                    },
                    ItemId: {
                        identifier: 'ItemId',
                        rules: [{
                                type: 'empty',
                                prompt: 'please enter address of mill'
                            }]
                    },
                    ItemName: {
                        identifier: 'ItemName',
                        rules: [{
                                type: 'empty',
                                prompt: 'please enter Item Name'
                            }]
                    }

                });


            });


        </script>
    </head>
    <body>
        <c:if test="${empty Admin}">
            <c:redirect url="home.jsp"/>
        </c:if>
        <%@include file="FactoryMenu.jsp" %>
        <div class="ui form segment" id="FactoryRegistrationForm">
            <form method="Post" action="${pagecontext.request.context}/Factory_Purchase">
                <div class="field">
                    <label>Factory NAme</label>
                    <div class="ui left icon input">
                        <input type="text" id="FN" name="factoryName"
                               placeholder="Enter Factory Name"> <i class="user icon"></i>
                    </div>
                </div>
                <div class="two fields">
                    <div class="field">
                        <label>FActory_ID</label>
                        <div class="ui left icon input">
                            <input type="text" id="PH" name="factoryID"
                                   placeholder="Enter Factory Id">
                        </div>
                    </div>
                    <div class="field">
                        <label>Item_ID</label>
                        <div class="ui left icon input">
                            <input type="text" id="PH" name="ItemId"
                                   placeholder="Enter Item Id">
                        </div>

                    </div>
                </div>
                <div class="field">
                    <label>Item_Name</label>
                    <div class="ui left icon input">
                        <input type="text" id="FN" name="ItemName"
                               placeholder="Enter Item Name"> <i class="user icon"></i>
                    </div>
                </div>
                <div class="two fields">
                    <div class="field">
                        <label>Quantity</label>
                        <div class="ui left icon input">
                            <input type="text" id="Faddress" name="Quantity"
                                   placeholder="Enter Quantity">
                        </div>
                    </div>
                    <div class="field">
                        <label>Rate</label>
                        <div class="ui left icon input">
                            <input type="text" id="Fcity" name="Rate"
                                   placeholder="Enter Rate">
                        </div>
                    </div>
                </div>
                <div class="field">
                    <label>Total_Sum</label>
                    <div class="ui left icon input">
                        <input type="text" id="FN" name="Total_Sum"
                               placeholder="Enter Total Sum"> <i class="user icon"></i>
                    </div>
                </div>
                <input type="button" class="ui blue button" value="submit">
            </form>



        </div>

    </body>
</html>